1
'------------------------------------------------------------------------------
3 ' This code was generated by a tool.
4 ' Runtime Version:2.0.50727.3603
6 ' Changes to this file may cause incorrect behavior and will be lost if
7 ' the code is regenerated.
9 '------------------------------------------------------------------------------
14 <Assembly
: Global.System
.Data
.Objects
.DataClasses
.EdmSchemaAttribute("c0c77fe2-6cf4-45c4-a90e-c5e37bca04e7"), _
15 Assembly
: Global.System
.Data
.Objects
.DataClasses
.EdmRelationshipAttribute("EFTblSplitModel", "PersonPersonDetail", "Person", Global.System
.Data
.Metadata
.Edm
.RelationshipMultiplicity
.One
, GetType(Person
), "PersonDetail", Global.System
.Data
.Metadata
.Edm
.RelationshipMultiplicity
.One
, GetType(PersonDetail
))>
18 'Generation date: 2009-10-22 7:21:26
20 '''There are no comments for EFTblSplitEntitie in the schema.
22 Partial
Public Class EFTblSplitEntitie
23 Inherits
Global.System
.Data
.Objects
.ObjectContext
25 '''Initializes a new EFTblSplitEntitie object using the connection string found in the 'EFTblSplitEntitie' section of the application configuration file.
28 MyBase
.New("name=EFTblSplitEntitie", "EFTblSplitEntitie")
32 '''Initialize a new EFTblSplitEntitie object.
34 Public Sub New(ByVal connectionString
As String)
35 MyBase
.New(connectionString
, "EFTblSplitEntitie")
39 '''Initialize a new EFTblSplitEntitie object.
41 Public Sub New(ByVal connection
As Global.System
.Data
.EntityClient
.EntityConnection
)
42 MyBase
.New(connection
, "EFTblSplitEntitie")
45 Partial
Private Sub OnContextCreated()
48 '''There are no comments for Person in the schema.
50 Public ReadOnly
Property Person() As Global.System
.Data
.Objects
.ObjectQuery(Of Person
)
52 If (Me._Person Is
Nothing) Then
53 Me._Person
= MyBase
.CreateQuery(Of Person
)("[Person]")
58 Private _Person
As Global.System
.Data
.Objects
.ObjectQuery(Of Person
)
60 '''There are no comments for PersonDetailSet in the schema.
62 Public ReadOnly
Property PersonDetailSet() As Global.System
.Data
.Objects
.ObjectQuery(Of PersonDetail
)
64 If (Me._PersonDetailSet Is
Nothing) Then
65 Me._PersonDetailSet
= MyBase
.CreateQuery(Of PersonDetail
)("[PersonDetailSet]")
67 Return Me._PersonDetailSet
70 Private _PersonDetailSet
As Global.System
.Data
.Objects
.ObjectQuery(Of PersonDetail
)
72 '''There are no comments for Person in the schema.
74 Public Sub AddToPerson(ByVal person
As Person
)
75 MyBase
.AddObject("Person", person
)
78 '''There are no comments for PersonDetailSet in the schema.
80 Public Sub AddToPersonDetailSet(ByVal personDetail
As PersonDetail
)
81 MyBase
.AddObject("PersonDetailSet", personDetail
)
85 '''There are no comments for EFTblSplitModel.Person in the schema.
90 <Global.System
.Data
.Objects
.DataClasses
.EdmEntityTypeAttribute(NamespaceName
:="EFTblSplitModel", Name
:="Person"), _
91 Global.System
.Runtime
.Serialization
.DataContractAttribute(IsReference
:=true), _
92 Global.System
.Serializable()> _
93 Partial
Public Class Person
94 Inherits
Global.System
.Data
.Objects
.DataClasses
.EntityObject
96 '''Create a new Person object.
98 '''<param name="personID">Initial value of PersonID.</param>
99 '''<param name="lastName">Initial value of LastName.</param>
100 '''<param name="firstName">Initial value of FirstName.</param>
101 Public Shared
Function CreatePerson(ByVal personID
As Integer, ByVal lastName
As String, ByVal firstName
As String) As Person
102 Dim person
As Person
= New Person
103 person
.PersonID
= personID
104 person
.LastName
= lastName
105 person
.FirstName
= firstName
109 '''There are no comments for Property PersonID in the schema.
111 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(EntityKeyProperty
:=true, IsNullable
:=false), _
112 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
113 Public Property PersonID() As Integer
118 Me.OnPersonIDChanging(value
)
119 Me.ReportPropertyChanging("PersonID")
120 Me._PersonID
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
)
121 Me.ReportPropertyChanged("PersonID")
125 Private _PersonID
As Integer
126 Partial
Private Sub OnPersonIDChanging(ByVal value
As Integer)
128 Partial
Private Sub OnPersonIDChanged()
131 '''There are no comments for Property LastName in the schema.
133 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(IsNullable
:=false), _
134 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
135 Public Property LastName() As String
140 Me.OnLastNameChanging(value
)
141 Me.ReportPropertyChanging("LastName")
142 Me._LastName
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
, false)
143 Me.ReportPropertyChanged("LastName")
147 Private _LastName
As String
148 Partial
Private Sub OnLastNameChanging(ByVal value
As String)
150 Partial
Private Sub OnLastNameChanged()
153 '''There are no comments for Property FirstName in the schema.
155 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(IsNullable
:=false), _
156 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
157 Public Property FirstName() As String
162 Me.OnFirstNameChanging(value
)
163 Me.ReportPropertyChanging("FirstName")
164 Me._FirstName
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
, false)
165 Me.ReportPropertyChanged("FirstName")
166 Me.OnFirstNameChanged
169 Private _FirstName
As String
170 Partial
Private Sub OnFirstNameChanging(ByVal value
As String)
172 Partial
Private Sub OnFirstNameChanged()
175 '''There are no comments for PersonDetail in the schema.
177 <Global.System
.Data
.Objects
.DataClasses
.EdmRelationshipNavigationPropertyAttribute("EFTblSplitModel", "PersonPersonDetail", "PersonDetail"), _
178 Global.System
.Xml
.Serialization
.XmlIgnoreAttribute(), _
179 Global.System
.Xml
.Serialization
.SoapIgnoreAttribute(), _
180 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
181 Public Property PersonDetail() As PersonDetail
183 Return CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.GetRelatedReference(Of PersonDetail
)("EFTblSplitModel.PersonPersonDetail", "PersonDetail").Value
186 CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.GetRelatedReference(Of PersonDetail
)("EFTblSplitModel.PersonPersonDetail", "PersonDetail").Value
= value
190 '''There are no comments for PersonDetail in the schema.
192 <Global.System
.ComponentModel
.BrowsableAttribute(false), _
193 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
194 Public Property PersonDetailReference() As Global.System
.Data
.Objects
.DataClasses
.EntityReference(Of PersonDetail
)
196 Return CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.GetRelatedReference(Of PersonDetail
)("EFTblSplitModel.PersonPersonDetail", "PersonDetail")
199 If (Not (value
) Is
Nothing) Then
200 CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.InitializeRelatedReference(Of PersonDetail
)("EFTblSplitModel.PersonPersonDetail", "PersonDetail", value
)
206 '''There are no comments for EFTblSplitModel.PersonDetail in the schema.
211 <Global.System
.Data
.Objects
.DataClasses
.EdmEntityTypeAttribute(NamespaceName
:="EFTblSplitModel", Name
:="PersonDetail"), _
212 Global.System
.Runtime
.Serialization
.DataContractAttribute(IsReference
:=true), _
213 Global.System
.Serializable()> _
214 Partial
Public Class PersonDetail
215 Inherits
Global.System
.Data
.Objects
.DataClasses
.EntityObject
217 '''Create a new PersonDetail object.
219 '''<param name="personID">Initial value of PersonID.</param>
220 '''<param name="personCategory">Initial value of PersonCategory.</param>
221 Public Shared
Function CreatePersonDetail(ByVal personID
As Integer, ByVal personCategory
As Short
) As PersonDetail
222 Dim personDetail
As PersonDetail
= New PersonDetail
223 personDetail
.PersonID
= personID
224 personDetail
.PersonCategory
= personCategory
228 '''There are no comments for Property PersonID in the schema.
230 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(EntityKeyProperty
:=true, IsNullable
:=false), _
231 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
232 Public Property PersonID() As Integer
237 Me.OnPersonIDChanging(value
)
238 Me.ReportPropertyChanging("PersonID")
239 Me._PersonID
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
)
240 Me.ReportPropertyChanged("PersonID")
244 Private _PersonID
As Integer
245 Partial
Private Sub OnPersonIDChanging(ByVal value
As Integer)
247 Partial
Private Sub OnPersonIDChanged()
250 '''There are no comments for Property PersonCategory in the schema.
252 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(IsNullable
:=false), _
253 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
254 Public Property PersonCategory() As Short
256 Return Me._PersonCategory
259 Me.OnPersonCategoryChanging(value
)
260 Me.ReportPropertyChanging("PersonCategory")
261 Me._PersonCategory
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
)
262 Me.ReportPropertyChanged("PersonCategory")
263 Me.OnPersonCategoryChanged
266 Private _PersonCategory
As Short
267 Partial
Private Sub OnPersonCategoryChanging(ByVal value
As Short
)
269 Partial
Private Sub OnPersonCategoryChanged()
272 '''There are no comments for Property HireDate in the schema.
274 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(), _
275 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
276 Public Property HireDate() As Global.System
.Nullable(Of
Date)
281 Me.OnHireDateChanging(value
)
282 Me.ReportPropertyChanging("HireDate")
283 Me._HireDate
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
)
284 Me.ReportPropertyChanged("HireDate")
288 Private _HireDate
As Global.System
.Nullable(Of
Date)
289 Partial
Private Sub OnHireDateChanging(ByVal value
As Global.System
.Nullable(Of
Date))
291 Partial
Private Sub OnHireDateChanged()
294 '''There are no comments for Property EnrollmentDate in the schema.
296 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(), _
297 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
298 Public Property EnrollmentDate() As Global.System
.Nullable(Of
Date)
300 Return Me._EnrollmentDate
303 Me.OnEnrollmentDateChanging(value
)
304 Me.ReportPropertyChanging("EnrollmentDate")
305 Me._EnrollmentDate
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
)
306 Me.ReportPropertyChanged("EnrollmentDate")
307 Me.OnEnrollmentDateChanged
310 Private _EnrollmentDate
As Global.System
.Nullable(Of
Date)
311 Partial
Private Sub OnEnrollmentDateChanging(ByVal value
As Global.System
.Nullable(Of
Date))
313 Partial
Private Sub OnEnrollmentDateChanged()
316 '''There are no comments for Property Picture in the schema.
318 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(), _
319 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
320 Public Property Picture() As Byte()
322 Return Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.GetValidValue(Me._Picture
)
325 Me.OnPictureChanging(value
)
326 Me.ReportPropertyChanging("Picture")
327 Me._Picture
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
, true)
328 Me.ReportPropertyChanged("Picture")
332 Private _Picture() As Byte
333 Partial
Private Sub OnPictureChanging(ByVal value() As Byte)
335 Partial
Private Sub OnPictureChanged()
338 '''There are no comments for Property BusinessCredits in the schema.
340 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(), _
341 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
342 Public Property BusinessCredits() As String
344 Return Me._BusinessCredits
347 Me.OnBusinessCreditsChanging(value
)
348 Me.ReportPropertyChanging("BusinessCredits")
349 Me._BusinessCredits
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
, true)
350 Me.ReportPropertyChanged("BusinessCredits")
351 Me.OnBusinessCreditsChanged
354 Private _BusinessCredits
As String
355 Partial
Private Sub OnBusinessCreditsChanging(ByVal value
As String)
357 Partial
Private Sub OnBusinessCreditsChanged()
360 '''There are no comments for Property AdminDate in the schema.
362 <Global.System
.Data
.Objects
.DataClasses
.EdmScalarPropertyAttribute(), _
363 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
364 Public Property AdminDate() As Global.System
.Nullable(Of
Date)
369 Me.OnAdminDateChanging(value
)
370 Me.ReportPropertyChanging("AdminDate")
371 Me._AdminDate
= Global.System
.Data
.Objects
.DataClasses
.StructuralObject
.SetValidValue(value
)
372 Me.ReportPropertyChanged("AdminDate")
373 Me.OnAdminDateChanged
376 Private _AdminDate
As Global.System
.Nullable(Of
Date)
377 Partial
Private Sub OnAdminDateChanging(ByVal value
As Global.System
.Nullable(Of
Date))
379 Partial
Private Sub OnAdminDateChanged()
382 '''There are no comments for Person in the schema.
384 <Global.System
.Data
.Objects
.DataClasses
.EdmRelationshipNavigationPropertyAttribute("EFTblSplitModel", "PersonPersonDetail", "Person"), _
385 Global.System
.Xml
.Serialization
.XmlIgnoreAttribute(), _
386 Global.System
.Xml
.Serialization
.SoapIgnoreAttribute(), _
387 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
388 Public Property Person() As Person
390 Return CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.GetRelatedReference(Of Person
)("EFTblSplitModel.PersonPersonDetail", "Person").Value
393 CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.GetRelatedReference(Of Person
)("EFTblSplitModel.PersonPersonDetail", "Person").Value
= value
397 '''There are no comments for Person in the schema.
399 <Global.System
.ComponentModel
.BrowsableAttribute(false), _
400 Global.System
.Runtime
.Serialization
.DataMemberAttribute()> _
401 Public Property PersonReference() As Global.System
.Data
.Objects
.DataClasses
.EntityReference(Of Person
)
403 Return CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.GetRelatedReference(Of Person
)("EFTblSplitModel.PersonPersonDetail", "Person")
406 If (Not (value
) Is
Nothing) Then
407 CType(Me,Global.System
.Data
.Objects
.DataClasses
.IEntityWithRelationships
).RelationshipManager
.InitializeRelatedReference(Of Person
)("EFTblSplitModel.PersonPersonDetail", "Person", value
)